package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.FieldTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 页面字段展示模式 Mapper 接口
 * </p>
 *
 * @author lishiying
 * @since 2022-09-14
 */
@Mapper
@Repository
public interface FieldTemplateMapper extends BaseMapper<FieldTemplate> {

    FieldTemplate getTypeBySpId(@Param("spId")String spId);

    /**
     * 获取安防设备工单配置
     * @return
     */
    List<FieldTemplate> getSkWorkSystemTypeAuto();

}
